package com.objects;

import java.util.List;

public class Employee implements java.io.Serializable {
	
	private String name;
	private String firstName;
	private String lastName;
	
	private String emailAddress;
	private String positionCode;
	private List<Project> projects;
	private String employeeID;
	private String seatCode;
	private String seatTypeDesc;
	private String localNumber;
		
	public String getLocalNumber() {
		return localNumber;
	}
	public void setLocalNumber(String localNumber) {
		this.localNumber = localNumber;
	}
	public String getSeatTypeDesc() {
		return seatTypeDesc;
	}
	public void setSeatTypeDesc(String seatTypeDesc) {
		this.seatTypeDesc = seatTypeDesc;
	}
	public Employee(){}
	public Employee(String employeeID, String name, String firstName,
			String lastName, List<Project> projects) {
		super();
		this.employeeID = employeeID;
		this.name = name;
		this.firstName = firstName;
		this.lastName = lastName;
		this.projects = projects;
	}
	public String getEmployeeID() {
		return employeeID;
	}
	public void setEmployeeID(String employeeID) {
		this.employeeID = employeeID;
	}
	public String getName() {
		return name;
	}
	
	public synchronized void setName() {
		this.name = getLastName()+  ", " + getFirstName() ;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getEmailAddress() {
		return emailAddress;
	}
	public void setEmailAddress(String emailAddress) {
		this.emailAddress = emailAddress;
	}
	public String getPositionCode() {
		return positionCode;
	}
	public void setPositionCode(String positionCode) {
		this.positionCode = positionCode;
	}
	public List<Project> getProjects() {
		return projects;
	}
	public void setProjects(List<Project> projects) {
		this.projects = projects;
	}
	public String getSeatCode() {
		return seatCode;
	}
	public void setSeatCode(String seatCode) {
		this.seatCode = seatCode;
	}

}
